package com.ruoyi.service.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户账号表对象 service_users
 *
 * @author ZDL
 * @date 2025-02-17
 */
public class ServiceUsers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者端用户表主键ID */
    private Long usersId;

    /** openId */
    @Excel(name = "openId")
    private String usersOpenid;

    /** sessionKey */
    @Excel(name = "sessionKey")
    private String usersSessionkey;

    /** 姓名 */
    @Excel(name = "姓名")
    private String usersName;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String usersIdnumber;

    /** 手机号/账号 */
    @Excel(name = "手机号/账号")
    private String usersTelephone;

    /** 密码 */
    @Excel(name = "密码")
    private String nursePassword;

    /** 用户类型（00系统用户） */
    @Excel(name = "用户类型", readConverterExp = "0=0系统用户")
    private String nurseType;

    /** 用户性别（0男 1女 2未知） */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String nurseSex;

    /** 头像地址 */
    @Excel(name = "头像地址")
    private String nurseAvatar;

    /** 最后登录IP */
    @Excel(name = "最后登录IP")
    private String nurseLoginIp;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nurseLoginDate;

    /** 最近访问时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近访问时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usersCurrentlogintime;

    /** 注册创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usersCreateTime;

    /** 更新者 */
    @Excel(name = "更新者")
    private String usersUpdateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usersUpdateTime;

    /** 启用标志（0代表启用 2代表不启用） */
    @Excel(name = "启用标志", readConverterExp = "0=代表启用,2=代表不启用")
    private String usersUseFlag;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private String usersDelFlag;

    /** 备注 */
    @Excel(name = "备注")
    private String usersRemark;

    /** 操作日志表ID */
    @Excel(name = "操作日志表ID")
    private Long usersLogid;

    /** 锁定原因表ID */
    @Excel(name = "锁定原因表ID")
    private Long usersReasonid;

    /** 锁定补充说明 */
    @Excel(name = "锁定补充说明")
    private String usersExplanation;

    public void setUsersId(Long usersId)
    {
        this.usersId = usersId;
    }

    public Long getUsersId()
    {
        return usersId;
    }
    public void setUsersOpenid(String usersOpenid)
    {
        this.usersOpenid = usersOpenid;
    }

    public String getUsersOpenid()
    {
        return usersOpenid;
    }
    public void setUsersSessionkey(String usersSessionkey)
    {
        this.usersSessionkey = usersSessionkey;
    }

    public String getUsersSessionkey()
    {
        return usersSessionkey;
    }
    public void setUsersName(String usersName)
    {
        this.usersName = usersName;
    }

    public String getUsersName()
    {
        return usersName;
    }
    public void setUsersIdnumber(String usersIdnumber)
    {
        this.usersIdnumber = usersIdnumber;
    }

    public String getUsersIdnumber()
    {
        return usersIdnumber;
    }
    public void setUsersTelephone(String usersTelephone)
    {
        this.usersTelephone = usersTelephone;
    }

    public String getUsersTelephone()
    {
        return usersTelephone;
    }
    public void setNursePassword(String nursePassword)
    {
        this.nursePassword = nursePassword;
    }

    public String getNursePassword()
    {
        return nursePassword;
    }
    public void setNurseType(String nurseType)
    {
        this.nurseType = nurseType;
    }

    public String getNurseType()
    {
        return nurseType;
    }
    public void setNurseSex(String nurseSex)
    {
        this.nurseSex = nurseSex;
    }

    public String getNurseSex()
    {
        return nurseSex;
    }
    public void setNurseAvatar(String nurseAvatar)
    {
        this.nurseAvatar = nurseAvatar;
    }

    public String getNurseAvatar()
    {
        return nurseAvatar;
    }
    public void setNurseLoginIp(String nurseLoginIp)
    {
        this.nurseLoginIp = nurseLoginIp;
    }

    public String getNurseLoginIp()
    {
        return nurseLoginIp;
    }
    public void setNurseLoginDate(Date nurseLoginDate)
    {
        this.nurseLoginDate = nurseLoginDate;
    }

    public Date getNurseLoginDate()
    {
        return nurseLoginDate;
    }
    public void setUsersCurrentlogintime(Date usersCurrentlogintime)
    {
        this.usersCurrentlogintime = usersCurrentlogintime;
    }

    public Date getUsersCurrentlogintime()
    {
        return usersCurrentlogintime;
    }
    public void setUsersCreateTime(Date usersCreateTime)
    {
        this.usersCreateTime = usersCreateTime;
    }

    public Date getUsersCreateTime()
    {
        return usersCreateTime;
    }
    public void setUsersUpdateBy(String usersUpdateBy)
    {
        this.usersUpdateBy = usersUpdateBy;
    }

    public String getUsersUpdateBy()
    {
        return usersUpdateBy;
    }
    public void setUsersUpdateTime(Date usersUpdateTime)
    {
        this.usersUpdateTime = usersUpdateTime;
    }

    public Date getUsersUpdateTime()
    {
        return usersUpdateTime;
    }
    public void setUsersUseFlag(String usersUseFlag)
    {
        this.usersUseFlag = usersUseFlag;
    }

    public String getUsersUseFlag()
    {
        return usersUseFlag;
    }
    public void setUsersDelFlag(String usersDelFlag)
    {
        this.usersDelFlag = usersDelFlag;
    }

    public String getUsersDelFlag()
    {
        return usersDelFlag;
    }
    public void setUsersRemark(String usersRemark)
    {
        this.usersRemark = usersRemark;
    }

    public String getUsersRemark()
    {
        return usersRemark;
    }
    public void setUsersLogid(Long usersLogid)
    {
        this.usersLogid = usersLogid;
    }

    public Long getUsersLogid()
    {
        return usersLogid;
    }
    public void setUsersReasonid(Long usersReasonid)
    {
        this.usersReasonid = usersReasonid;
    }

    public Long getUsersReasonid()
    {
        return usersReasonid;
    }
    public void setUsersExplanation(String usersExplanation)
    {
        this.usersExplanation = usersExplanation;
    }

    public String getUsersExplanation()
    {
        return usersExplanation;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("usersId", getUsersId())
                .append("usersOpenid", getUsersOpenid())
                .append("usersSessionkey", getUsersSessionkey())
                .append("usersName", getUsersName())
                .append("usersIdnumber", getUsersIdnumber())
                .append("usersTelephone", getUsersTelephone())
                .append("nursePassword", getNursePassword())
                .append("nurseType", getNurseType())
                .append("nurseSex", getNurseSex())
                .append("nurseAvatar", getNurseAvatar())
                .append("nurseLoginIp", getNurseLoginIp())
                .append("nurseLoginDate", getNurseLoginDate())
                .append("usersCurrentlogintime", getUsersCurrentlogintime())
                .append("usersCreateTime", getUsersCreateTime())
                .append("usersUpdateBy", getUsersUpdateBy())
                .append("usersUpdateTime", getUsersUpdateTime())
                .append("usersUseFlag", getUsersUseFlag())
                .append("usersDelFlag", getUsersDelFlag())
                .append("usersRemark", getUsersRemark())
                .append("usersLogid", getUsersLogid())
                .append("usersReasonid", getUsersReasonid())
                .append("usersExplanation", getUsersExplanation())
                .toString();
    }
}
